import request from './request'

// API接口
export const getApiInfo = () => {
  return request({
    url: '/info/',
    method: 'get'
  })
}

export const sendHello = (data) => {
  return request({
    url: '/hello/',
    method: 'post',
    data
  })
}

// 用户认证相关
export const login = (data) => {
  return request({
    url: '/login/',
    method: 'post',
    data
  })
}

export const logout = () => {
  return request({
    url: '/logout/',
    method: 'post'
  })
}

export const getUserInfo = () => {
  return request({
    url: '/user/info/',
    method: 'get'
  })
}

